# $Id$
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=kdiagram
pkgver=2.6.1
pkgrel=1
pkgdesc="Powerful libraries for creating business diagrams"
arch=(x86_64)
url="http://www.kde.org/"
license=(GPL2)
depends=(qt5-svg)
makedepends=(extra-cmake-modules qt5-tools doxygen)
source=("http://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
sha1sums=('0e5372f8a14f127a867907e590f2d137f187398c')


prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=OFF \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_QCH=ON
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
